package edu.its.dreamteam.daf.beans;

import java.io.Serializable;
import java.util.Date;

public class SellPlayer extends BaseBean implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String idSell;
	private String idDraftPlayer;
	private Date dateSell;
	private String status;
	
	private DraftPlayer draftPlayer;
	
	
	
	public String getIdSell() {
		return idSell;
	}

	public void setIdSell(String idSell) {
		this.idSell = idSell;
	}

	public String getIdDraftPlayer() {
		idDraftPlayer = getDraftPlayer().getIdDraft();
		return idDraftPlayer;
	}

	public void setIdDraftPlayer(String idDraftPlayer) {
		this.idDraftPlayer = idDraftPlayer;
		getDraftPlayer().setIdDraft(idDraftPlayer);
	}

	public Date getDateSell() {
		return dateSell;
	}

	public void setDateSell(Date dateSell) {
		this.dateSell = dateSell;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public DraftPlayer getDraftPlayer() {
		if(draftPlayer==null){
			draftPlayer = new DraftPlayer();
		}
		return draftPlayer;
	}

	public void setDraftPlayer(DraftPlayer draftPlayer) {
		this.draftPlayer = draftPlayer;
	}

	protected String getPrimaryKey() {
		return getIdSell();
	}

}
